Ext.define('DutyList.calendar.data.Users', {

    statics: {
        getData: function() {
            var today = Ext.Date.clearTime(new Date()), 
                makeDate = function(d) {
                    d = d * 86400;
                    return Ext.Date.add(today, Ext.Date.SECOND, d);
                };
                
            return {
                "usrs": [{
                    "sheduleid": 1005,
                    "name": "Vacation12",
                    "startdate": makeDate(-5)
                },{
                    "sheduleid": 1001,
                    "name": "Vacation",
                    "startdate": makeDate(-5)
                }, {
                    "sheduleid": 1006,
                    "name": "Vacation20",
                    "startdate": makeDate(-5)
                },{
                    "sheduleid": 1002,
                    "name": "Lunch with Matt",
                    "startdate": makeDate(-4)
                }, {
                    "sheduleid": 1003,
                    "name": "Project due",
                    "startdate": makeDate(3)
                }, {
                    "sheduleid": 1004,
                    "name": "Sarah's birthday",
                    "startdate": today
                }]
            }
        }
    }
});
